#ifndef COMEM_H
#define COMEM_H

#define CO_MALLOC(n)        malloc(n)
#define CO_REALLOC(p, n)    realloc((p), (n))
#define CO_FREE             free

#define CO_NEW(type, n) \
    ( (type *) CO_MALLOC((n) * sizeof(type)) )
#define CO_RESIZE(p, type, n) \
    ( (p) = (type *) CO_REALLOC((p), (n) * sizeof(type)) )

#endif
